//
//  AllMoneyController.m
//  DirectMember
//
//  Created by jzd on 2018/6/25.
//  Copyright © 2018年 宋佳. All rights reserved.
//

#import "AllMoneyController.h"
#import "AllMoneyCell.h"

@interface AllMoneyController ()<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *tableV;

@end

@implementation AllMoneyController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.extendedLayoutIncludesOpaqueBars = NO;
    self.navigationItem.title = @"奖金汇总";
    
    [self.tableV registerNib:[UINib nibWithNibName:NSStringFromClass([AllMoneyCell class]) bundle:nil] forCellReuseIdentifier:AllMoneyCellIdentifier];
}
- (IBAction)leftSelect:(UIButton *)sender {
}
- (IBAction)rightSelect:(UIButton *)sender {
}




-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return 1;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 4;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    AllMoneyCell *cell = [tableView dequeueReusableCellWithIdentifier:AllMoneyCellIdentifier];
    return cell;
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 60;
}
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self.view endEditing:YES];
}
@end
